package com.example.xjttoboxuegu.util;

import android.content.Context;
import android.content.SharedPreferences;

public class AnalysisUtils {

    public static String readLoginUserName(Context context) {
        SharedPreferences sp = context.getSharedPreferences("loginInfo",
                                                            Context.MODE_PRIVATE);
        String userName = sp.getString("loginUserName","");//获取登录时的用户名
        return userName;
    }

}
